﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataAccess.Models
{
    /// <summary>
    /// 联盟账号
    /// </summary>
    public class Alimama
    {
        /// <summary>
        /// 主键，自增长
        /// </summary>
        [XYD.Framework.Key]
        [XYD.Framework.Identity]
        public int id { get; set; }
        /// <summary>
        /// 账号
        /// </summary>
        public string username { get; set; }
        /// <summary>
        /// 密码
        /// </summary> 
        public string password { get; set; }
        /// <summary>
        /// 启用状态，1已启用，0未启用
        /// </summary>
        public int state { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }
        /// <summary>
        /// 最后同步时间
        /// </summary>
        public DateTime synchro { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime add_data { get; set; }
        /// <summary>
        /// 添加机器人id
        /// </summary>
        public string robot_id { get; set; }
        /// <summary>
        /// 是否删除，0未删除，1已删除
        /// </summary>
        public int is_delete { get; set; }

        /// <summary>
        /// 阿里妈妈ID
        /// </summary>
        public string alimamaid { get; set; }
        /// <summary>
        /// 授权编码
        /// </summary>
        public string oauthRefresh{get;set;}
         public string oauthSession{get;set;}

        /// <summary>
        /// 授权过期时间
        /// </summary>
        public string oauthExpiry{get;set;}
        
     
        public string lastCreate{get;set;}
        public DateTime lastIncome{get;set;}
        /// <summary>
        /// 推广者id
        /// </summary>
        public int promoter_id { get; set; }

       
        //{"code":0,"list":[["123437061","\u56fd\u73cd\u5f90\u946b\u5409\u9996\u5e97","{\"oauthRefresh\":\"7000110140556277b1d0394c13033794ec641dbaa4ff85fa928f980b6a539146801756b2253568028\",\"lastEarning\":\"6323776432821343\",\"oauthExpiry\":1498642755416,\"oauthSession\":\"70000101705758f94153ad2737b8ea7523ec9fb4bdf3a8100bee8fcd6745f321490042e2253568028\",\"lastCreate\":\"23023061815020520\",\"lastIncome\":\"2017-06-05\"}",1217],["30374020","tb_6543566","{\"oauthRefresh\":\"70001101744758f947b8ea73a78950b643636c2d1a507bae9e4f92d112e7c62a982b4e6648462888\",\"lastEarning\":\"18711243158481614\",\"oauthExpiry\":1499181439467,\"oauthSession\":\"7000010094478546cbab088a4abe7f7ed96fb28c266dc88c2202529d1dc93c781e12260648462888\",\"lastCreate\":null,\"lastIncome\":null}",500]]}


    }
}
